<!--
 * @Date: 2022-01-05 09:21:54
 * @Version: 1.0.0
 * @Author: chenhengling
 * @Description: antdv年选择器组件
 * @FilePath: \ant-year-picker\src\components\antYearPicker\antYearPicker.vue
 * @LastEditTime: 2022-08-02 10:02:12
 * @LastEditors: chenhengling
-->
<template src="../yearPicker/template.html"></template>

<script>
import yearPickerMixin from '../yearPicker/mixin';
import { DatePicker } from 'ant-design-vue';
import { momentToString } from 'ant-design-vue/es/_util/moment-util';

export default {
  name: 'a-year-picker',
  components: {
    DatePicker,
  },
  mixins: [yearPickerMixin],
  props: {
    ...DatePicker.props,
    ...yearPickerMixin.props,
  },
  methods: {
    momentToString,
  },
};
</script>
